package cn.maihe.elg.operation.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

/**
 * @author JHWei
 * 2018/7/20 上午9:56
 */
@Configuration
@ConfigurationProperties(prefix = "cn.maihe.elg.operation")
@Getter
@Setter
public class UploadConfig {
    private Map<String,Upload> upload;

    @Getter
    @Setter
    public static class Upload{
        private String server;

        private String path;

        private Long maxSize;

        private List<String> type;
    }
}
